package com.xintai.system.service.impl;

import java.util.List;

import com.xintai.common.core.domain.AjaxResult;
import com.xintai.utils.StaticString;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xintai.system.mapper.ErpCaizhiMapper;
import com.xintai.system.domain.ErpCaizhi;
import com.xintai.system.service.IErpCaizhiService;

/**
 * 热卷材质Service业务层处理
 * 
 * @author xintai
 * @date 2021-01-15
 */
@Service
public class ErpCaizhiServiceImpl implements IErpCaizhiService 
{
    @Autowired
    private ErpCaizhiMapper erpCaizhiMapper;

    /**
     * 查询热卷材质
     * 
     * @param czId 热卷材质ID
     * @return 热卷材质
     */
    @Override
    public ErpCaizhi selectErpCaizhiById(Long czId)
    {
        return erpCaizhiMapper.selectErpCaizhiById(czId);
    }

    @Override
    public boolean verifyCaiZhi(ErpCaizhi erpCaizhi) {
        return erpCaizhiMapper.verifyCaiZhi(erpCaizhi);
    }

    /**
     * 查询热卷材质列表
     * 
     * @param erpCaizhi 热卷材质
     * @return 热卷材质
     */
    @Override
    public List<ErpCaizhi> selectErpCaizhiList(ErpCaizhi erpCaizhi)
    {
        return erpCaizhiMapper.selectErpCaizhiList(erpCaizhi);
    }

    /**
     * 新增热卷材质
     * 
     * @param erpCaizhi 热卷材质
     * @return 结果
     */
    @Override
    public int insertErpCaizhi(ErpCaizhi erpCaizhi)
    {
        return erpCaizhiMapper.insertErpCaizhi(erpCaizhi);
    }

    /**
     * 修改热卷材质
     * 
     * @param erpCaizhi 热卷材质
     * @return 结果
     */
    @Override
    public int updateErpCaizhi(ErpCaizhi erpCaizhi)
    {
        return erpCaizhiMapper.updateErpCaizhi(erpCaizhi);
    }

    /**
     * 批量删除热卷材质
     * 
     * @param czIds 需要删除的热卷材质ID
     * @return 结果
     */
    @Override
    public int deleteErpCaizhiByIds(Long[] czIds)
    {
        return erpCaizhiMapper.deleteErpCaizhiByIds(czIds);
    }

    /**
     * 删除热卷材质信息
     * 
     * @param czId 热卷材质ID
     * @return 结果
     */
    @Override
    public int deleteErpCaizhiById(Long czId)
    {
        return erpCaizhiMapper.deleteErpCaizhiById(czId);
    }
}
